<%-- 
    Document   : menumain
    Created on : Oct 21, 2011, 10:42:07 AM
    Author     : Mr.Thanh
--%>

<%@page import="model.dao.administratorDAO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="model.pojo.QuanTriPOJO"%>
<%
QuanTriPOJO quantri=(QuanTriPOJO)session.getAttribute("Admin");
String table=request.getParameter("page");
if(table==null)table="home";
if(quantri==null){
    response.sendRedirect("../administrator.html?action=login");
}else{
    %>
<div class="promo">
			<h1 class="title"><img src="images/bullet2.png" class="img-promo"> A2's Shop  - Mua hàng chất lượng, giá rẻ, khuyến mãi tối đa...</h1>

			<h1 class="title2">
                            <img src="images/bullet_green.png" class="img-promo"><a class="ajaxAction LienKet[page=quantri<%='&'%>action=view]" title="">Chào <strong><%=quantri.getTenDangNhap()%></strong></a>
                                <img src="images/bullet_yellow.png" class="img-promo"><a href="administrator.html?page=login&action=logout">Đăng xuất</a>
			</h1>
		</div>
		<form action="" method="POST" onsubmit="return search_header();">
                    <div id="breadcrumb">
                        <ul>
                            <li class="first"><img src="images/bullet_blue.png" class="img-promo">
                            <a  href="administrator.html?page=home&action=view" title="Trang chủ">Trang chủ</a>
                            </li>

                            <li>&#187;</li>
                            <li style="float:right;margin-right:10px">
                                Table:
                                 <%
                               ArrayList<String> tbls=administratorDAO.getAllTable("vndoan");
                                   if(tbls.size()>0){
                                       %>
                                       <select name="cboTables" id="cboTables">
                                           <%
                                            for(String tbl:tbls){                                                
                                                %>
                                                  <option value="<%=tbl%>" ><%=tbl%></option>
                                            <% 
                                            }
                                          %>
                                       </select>   
                                       <%}%>
                                Field:
                                <select name="cboFields" id="cboFields">
                                 </select>   
                                Key word:
                            <input type="text" name="keyword" id="keyword">
                            <input type="button" id="btnTimKiem" value="Tìm kiếm" >
                            </li>
                            
                        </ul>
                        <span class="gach"></span>
                    </div>
            </form>
<%
}
%>
